package com.cogent.business.domain;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlType;

@XmlType(name = "PopStatColumnDomain")
public class PopStatColumnDomain implements Serializable,Comparable {
	private static final long serialVersionUID = 1L;
	private String colunmname;
	private int amount;
	private String[] statvalue;
	
	public String getColunmname() {
		return colunmname;
	}
	public void setColunmname(String colunmname) {
		this.colunmname = colunmname;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public String[] getStatvalue() {
		return statvalue;
	}
	public void setStatvalue(String[] statvalue) {
		this.statvalue = statvalue;
	}
	public int compareTo(Object obj) {
		PopStatColumnDomain domain = (PopStatColumnDomain)obj;
		int value = 0;
		if(this.amount > domain.getAmount())
			value = -1;
		else if(this.amount < domain.getAmount())
			value = 1;
		return value;
	}
}
